package com.ueboot.weishop.service.setting;

import com.ueboot.weishop.entity.setting.BrandEntity;
import com.ueboot.core.service.BaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Neel on 2017/9/18.
 */
public interface BrandService extends BaseService<BrandEntity> {

    /**
     * 根据关键字查询
     * @param pageable
     * @param keyword
     * @return
     */
    Page<BrandEntity> findBy(Pageable pageable,String keyword);

    List<BrandEntity> findByCategoryId(Long categoryId);
}
